//
//  GPSearchNetHelper.m
//  大股票
//
//  Created by mac on 2019/8/16.
//  Copyright © 2019 apple. All rights reserved.
//

#import "GPSearchNetHelper_NN.h"


@implementation GPSearchNetHelper_NN
+(void)getSearchResult:(NSString *)gid success:(CCPResponseSuccess)success fail:(CCPResponseFail)fail{
    NSString *url = [NSString stringWithFormat:@"http://web.juhe.cn:8080/finance/stock/hs"];
    NSMutableDictionary *params = @{}.mutableCopy;;
    [params setObject:@"5fea865e889d930275c8c14eae4578eb" forKey:@"key"];
    [params setObject:gid forKey:@"gid"];
//    [params setObject:@(0) forKey:@"type"];
    [CCPNetworking requestWithType:GET isJson:YES WithUrl:url params:params loadingImageArr:nil toShowView:nil cache:NO retryNum:0 success:^(id response, BOOL isNetData) {
        success(response,isNetData);
    } fail:^(NSError *error, NSURLSessionDataTask *task) {
        fail(error,task);
    } showHUD:NO];
}
@end
